package com.example.demo1.service.Impl;

import com.example.demo1.mapper.FlightMapper;
import com.example.demo1.model.Flight;
import com.example.demo1.model.User;
import com.example.demo1.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//杨德旭10.22
@Service
public class FlightServiceImpl implements FlightService {
    @Autowired
    FlightMapper flightMapper;
    @Override
    public List<Flight> getFlightList() {
        return flightMapper.getFlightList();
    }

    @Override
    public List<Flight> getUserFlight(User user) {
        return flightMapper.getUserFlight(user);
    }

    @Override
    public void addSbreth(Flight flight) {
        flightMapper.addSbreth(flight);
    }

    @Override
    public void addBbreth(Flight flight) {
        flightMapper.addBbreth(flight);
    }
}
